package com.css.zfzx.fwsjcj.modules.group.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fwsjcj.modules.group.entity.FwGroupEntity;
import com.css.zfzx.fwsjcj.modules.group.entity.FwGroupUserEntity;
import com.css.zfzx.fwsjcj.modules.group.vo.FwGroupEntityVo;
import com.css.zfzx.fwsjcj.modules.group.vo.FwGroupUserFormCountVO;
import com.css.zfzx.fwsjcj.modules.group.vo.FwGroupVo;
import com.css.zfzx.fwsjcj.modules.group.vo.GroupVo;
import com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.entity.FwCtiyHouseEntity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface FwGroupService {
    /**
     * 保存成功
     * @param fwGroupEntityVo
     */
    void saveGroup(HttpServletRequest request,FwGroupEntityVo fwGroupEntityVo,String type);

    /***
     * 查询分组
     * @param request
     * @param fwGroupVo
     * @param curPage
     * @param pageSize
     * @return
     */
    JSONObject getPage(HttpServletRequest request, FwGroupVo fwGroupVo, int curPage, int pageSize,String groupType);

    /***
     * 删除分组
     * @param ids
     */
    void deletGroup(List<String> ids);

    List<FwGroupEntity> findListById(List<String> ids);

    /***
     * 修改分组
     * @param fwGroupEntityVo
     */
   void updateGroup(FwGroupEntityVo fwGroupEntityVo,String type);

    /**
     * 查询小组详情
     * @param groupId
     * @return
     */
    GroupVo findById(String groupId);


    List<FwGroupUserFormCountVO> findGroupUser(String groupId);

    List<FwGroupEntity> findByGroupLeaderId(String groupLeaderID);

    JSONObject getPageGroup(HttpServletRequest request, FwGroupVo fwGroupVo, int curPage, int pageSize);
}
